package org.eenie.core.base.viewbinding

import android.os.Bundle
import androidx.activity.viewModels
import androidx.viewbinding.ViewBinding
import org.eenie.core.base.BaseActivity

abstract class BaseBindingActivity<BD : ViewBinding> : BaseActivity() {
    lateinit var binding: BD
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = providerBinding()
        setContentView(binding.root)
        initUI()
    }

    override fun getLayoutRes(): Int {
        return -1
    }


    abstract fun providerBinding(): BD

}